#ifndef _MOKOTOUCH_H_
#define _MOKOTOUCH_H_

#include <QGraphicsView>

#include <UIKit/UIDevice.h>
class UIDialogView;
class UIWindow;
class UIEvent;

class MokoTouch : public QGraphicsView {
    Q_OBJECT

    public:
        MokoTouch (QWidget *parent = 0);
        ~MokoTouch();

    public Q_SLOTS:
        void loadApp (const QString& fileName, 
                      const QStringList& args = QStringList());
        void killApp (void);

    private Q_SLOTS:
        void keyWindowChanged (UIWindow *window);

        void orientationChanged (UIDeviceOrientation orientation);

        void auxButtonPressed (UIEvent *event);
        void powerButtonPressed (UIEvent *event);

        void closeDialogView (void);       

    private:
        UIDialogView *m_dialogView;
};

#endif /* !_MOKOTOUCH_H_ */

